package com.centit.client;

import com.centit.OrderService;
import org.springframework.cloud.openfeign.FeignClient;

@FeignClient(value = "order-service",fallback = OrderServiceFeginClient.OrderServiceFeginClientFallback.class)
public interface OrderServiceFeginClient extends OrderService {

    class OrderServiceFeginClientFallback implements OrderServiceFeginClient{

        @Override
        public String orders() {
            return "查询订单失败，请稍后再试！";
        }
    }
}
